package homework;

import java.util.Scanner;

public class CrossNum {
    private int[] num;

    public CrossNum(int[] num) {
        this.num = num;
    }

    public void cross() {
        int tmp = this.num[0];
        this.num[0] = this.num[1];
        this.num[1] = tmp;
    }
}

class Test1 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int num1 = scanner.nextInt();
        int num2 = scanner.nextInt();
        int[] num = new int[]{num1, num2};
        CrossNum crossNum = new CrossNum(num);
        crossNum.cross();
        System.out.println(num[0] + " " + num[1]);
    }
}
